<?php
include"connect_flag.php";
  $datei = $_REQUEST['datei'];
   	 $photo_name = "uploads/".$_FILES['datei']['name'];
    //echo $photo_name;
		mysqli_query($con, "UPDATE $tablename SET photo = '$photo_name'	WHERE id = '1' ");

	mysqli_close($con);
	require_once(dirname(__FILE__) . "/uploader.php");
?>